package android.demo.service.aidl.domain;

import android.os.Parcel;
import android.os.Parcelable;

public class ContactGroup implements Parcelable {

	private String groupId;       
	private String groupName;   
//	private byte[] groupIcon;
	
	public static final Parcelable.Creator<ContactGroup> CREATOR = new Creator<ContactGroup>() {
		public ContactGroup createFromParcel(Parcel source) {
			
			ContactGroup contactGroup = new ContactGroup();
			
			contactGroup.groupId = source.readString();
			contactGroup.groupName = source.readString();
//			contactGroup.groupIcon = source.readByte();


			return contactGroup;
		}
	
		public ContactGroup[] newArray(int size) {
			return new ContactGroup[size];
		}
	};


	public int describeContents() {
		return 0;
	}


	public void writeToParcel(Parcel dest, int flags) {

		dest.writeString(groupId);
		dest.writeString(groupName);
//		dest.writeByteArray(groupIcon);
	}
	
	public String getGroupName() {
		return groupName;
	}


	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}


//	public byte[] getGroupIcon() {
//		return groupIcon;
//	}
//
//
//	public void setGroupIcon(byte[] groupIcon) {
//		this.groupIcon = groupIcon;
//	}
	
}